package com.ruoyi.business.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 请假管理对象 business_leave
 * 
 * @author ruoyi
 * @date 2025-01-04
 */
public class BusinessLeave extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long leaveId;

    /** 申请人账号 */
    @Excel(name = "申请人账号")
    private String userName;

    /** 申请人昵称 */
    @Excel(name = "申请人昵称")
    private String userNick;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 请假类型 */
    @Excel(name = "请假类型")
    private String leaveType;

    /** 请假缘由 */
    @Excel(name = "请假缘由")
    private String leaveReason;

    /** 状态 */
    @Excel(name = "状态")
    private Long leaveStatus;

    /** 审核理由 */
    @Excel(name = "审核理由")
    private String returnReason;

    public void setLeaveId(Long leaveId) 
    {
        this.leaveId = leaveId;
    }

    public Long getLeaveId() 
    {
        return leaveId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setUserNick(String userNick) 
    {
        this.userNick = userNick;
    }

    public String getUserNick() 
    {
        return userNick;
    }
    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }
    public void setEndTime(Date endTime) 
    {
        this.endTime = endTime;
    }

    public Date getEndTime() 
    {
        return endTime;
    }
    public void setLeaveType(String leaveType) 
    {
        this.leaveType = leaveType;
    }

    public String getLeaveType() 
    {
        return leaveType;
    }
    public void setLeaveReason(String leaveReason) 
    {
        this.leaveReason = leaveReason;
    }

    public String getLeaveReason() 
    {
        return leaveReason;
    }
    public void setLeaveStatus(Long leaveStatus) 
    {
        this.leaveStatus = leaveStatus;
    }

    public Long getLeaveStatus() 
    {
        return leaveStatus;
    }
    public void setReturnReason(String returnReason) 
    {
        this.returnReason = returnReason;
    }

    public String getReturnReason() 
    {
        return returnReason;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("leaveId", getLeaveId())
            .append("userName", getUserName())
            .append("userNick", getUserNick())
            .append("startTime", getStartTime())
            .append("endTime", getEndTime())
            .append("leaveType", getLeaveType())
            .append("leaveReason", getLeaveReason())
            .append("leaveStatus", getLeaveStatus())
            .append("returnReason", getReturnReason())
            .toString();
    }
}
